package com.projecy;

import com.projecy.common.utils.SpringContextHolder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.projecy.product.mapper")
@EnableTransactionManagement
@SpringBootApplication
public class RepApplication {
    public static void main(String[] args) {
        SpringApplication.run(RepApplication.class, args);
    }


    @Bean
    public SpringContextHolder springContextHolder(){
        return new SpringContextHolder();
    }//注册spring上下文对象

}
